﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeepZoomPivotConstructor.VisualLib
{
    /// <summary>
    /// Information for a composable visual, top level visual which will be rendered as
    /// a DZ sub-image - which can then be put together into a larger image.
    /// </summary>
    [Serializable]
    public class ComposableInfo
    {
        /// <summary>
        /// The object used to do the actual render.
        /// </summary>
        public object RenderObject;

        /// <summary>
        /// The hash value of the render object for fast lookup.
        /// </summary>
        public int Hash;

        /// <summary>
        /// Meta data used by the RenderItem to judge if the render is out of date.
        /// </summary>
        public object MetaData;

        /// <summary>
        /// The full type/assembly info for the guy that was doing the rendering.
        /// </summary>
        public string RenderItemFullType;

        /// <summary>
        /// The width of the visual at time of generation.
        /// </summary>
        public double Width;

        /// <summary>
        /// THe height of the visual at the time of generation.
        /// </summary>
        public double Height;
    }
}
